package utils;

import android.text.TextUtils;

import kitwee.com.kanpad.BuildConfig;

/**
 * @author GanQuan
 * @date 2018/4/18
 * utils
 */

public class FlavorHelper {

    public FlavorHelper() {
    }

    /**
     * 渠道验证
     *
     * @param name
     * @return
     */
    private static boolean checkFlavor(CharSequence name) {
        return TextUtils.equals(BuildConfig.FLAVOR, name);
    }


    public static boolean isDev() {
        return checkFlavor("dev");
    }


    public static boolean isGuanWang() {
        return checkFlavor("guanwang");
    }

    public static boolean isHongWei() {
        return checkFlavor("hongwei");
    }

    public static boolean isXiongTian() {
        return checkFlavor("xiongtian");
    }
}
